package com.isunland.managesystem.ui;

import android.app.Activity;
import android.content.Intent;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.BookOrderInfo;

/**
 * 对象功能: 在线接单详情
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2017/3/18 17:51
 */
public class OnlineReceiveOrderDetailActivity extends SingleFragmentActivity {
  @Override protected Fragment createFragment() {
    BookOrderInfo item =
        (BookOrderInfo) getIntent().getSerializableExtra(BaseOrderDetailFragment.EXTRA_ITEM);
    return OnlineReceiveOrderDetailFragment.newInstance(item);
  }

  public static void newInstance(android.support.v4.app.Fragment fragment, Activity context,
      BookOrderInfo item, int requestCode) {
    if (fragment == null || context == null) return;
    Intent i = new Intent(context, OnlineReceiveOrderDetailActivity.class);
    i.putExtra(BaseOrderDetailFragment.EXTRA_ITEM, item);
    fragment.startActivityForResult(i, requestCode);
  }
}
